﻿<workflow id="5">
  <start>500</start>
  <step id="500" type="2">
    <next>
      <condition><![CDATA[select check_userrole(@createUserId,4);]]></condition>
      <true>501</true>
      <false>502</false>
    </next>
  </step>
  <step id="501" type="1">
    <name>部门经理审批</name>
    <task>1</task>
    <next>502</next>
  </step>
  <step id="502" type="1">
    <name>主管副总审批</name>
    <task>2</task>
    <next>503</next>
  </step>
  <step id="503" type="1">
    <name>财务审批</name>
    <task>5</task>
    <next>504</next>
  </step>
  <step id="504" type="1">
    <name>总经理审批</name>
    <task>4</task>
    <next>505</next>
  </step>
  <step id="505" type="2">
    <next>
      <condition>
        <![CDATA[
      select check_form_data_where(@flowObjectId, @dataId, 5004, ' >= 100000');
      ]]></condition>
      <true>506</true>
    </next>    
  </step>
  <step id="506" type="1">
    <name>副董事长审批</name>
    <task>7</task>
    <next>507</next>
  </step>
  <step id="507" type="1">
    <name>董事长审批</name>
    <task>8</task>
  </step>
</workflow>